#include <iostream>
#include <string>

using namespace std;


class Complex
{
private:
    double real;
    double imag;
public:
    Complex()
        :real(0) , imag(0)
    {

    }
    Complex(double real , double imag)
        :real(real) , imag(imag)
    {

    }
    ~Complex()
    {

    }
public:
    void Show()
    {
        cout << "实部"<< real << "虚部" << imag << endl;
    }
public:
    bool operator!()const
    {
        bool b = !(this->imag + this->real);
        return b;
    }

    friend ostream & operator<<(ostream &os , const Complex &O);
};

ostream & operator<<(ostream &os , const Complex &O)
{
    os <<"实部" << O.real << "虚部" << O.imag;
    return os;
}

int main(int argc, char const *argv[])
{
    Complex F(10 , 20);
    bool b =!F ;

    cout << F << endl;
    
    return 0;
}
